package com.itcorey.interview.listDemo;

import java.util.HashMap;
import java.util.Map;
import java.util.Random;

/**
 * @author corey
 * @Date: 2021/5/4 17:47
 * @Description: 数组测试
 */
public class ListDemo {
    public static void main(String[] args) {
        String [] duty = {"成功领取赠险", "安全到家", "已领取50万保障", "和家人团聚","在家中贴春联"};
        int userLen = new Random().nextInt(duty.length);
        System.out.println(duty[userLen]);

        Map<String,Object> map = new HashMap<>();
        map.put("name",null);
        System.out.println(map.get("name"));


    }
}
